%h2=_ "Plugins"
%h5=_ "drag & drop to reorder the list," 
%h5=_ "click on plugin name to edit properties"
= image_tag "indicator_arrows.gif",:id=>"busy_plugin",:style=>"display:none;" 
%ul{:id=>"list",:style=>"list-style-type:none;"}
  - i=0 
  - for extplugin in @extplugins
    %li{:id=>"item_"+extplugin.id.to_s}
      = image_tag("cog.png")
      = " "
      = link_to image_tag("table_refresh.png",:border=>0),:action=>"toggle_activate",:id=>extplugin
      = " "
      = link_to extplugin.name,:action=>"edit",:id=>extplugin
      = " "
      - if extplugin.activated==1
        = image_tag("accept.png")
    - i+=1
%p{:id=>"list_info"}
= sortable_element 'list', :loading =>"Element.show('busy_plugin')",:complete => [visual_effect(:highlight, 'list'),"Element.hide('busy_plugin')"],:url => { :action => "order" } 
= "<br />"
